package com.goods.enumeration;

import lombok.Data;

public enum  CodeEnumeration {
    SERVERERROR (500,"服务器异常"),
    SUCCESS(200,"成功"),
    ADD_FAIL(501,"新增失败"),
    DELETE_FAIL(502,"删除失败"),
    UPDATE_FAIL(503,"修改失败");
    private  Integer code;
    private  String message;
    CodeEnumeration(Integer code,String message){
        this.code=code;
        this.message=message;
    }

    public Integer getCode() {
        return code;
    }



    public String getMessage() {
        return message;
    }


}
